using System.Data.Entity;
using System.Data.Entity.Infrastructure;
using ManagementClinic.Data.Models.Mapping;

namespace ManagementClinic.Data.Models
{
    public partial class DataAccessContext : DbContext
    {
        static DataAccessContext()
        {
            Database.SetInitializer<DataAccessContext>(null);
        }

        public DataAccessContext()
            : base("Name=DataContext")
        {
        }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Configurations.Add(new BAC_SIMap());
            modelBuilder.Configurations.Add(new BAC_SI_PHONG_KHAMMap());
            modelBuilder.Configurations.Add(new DICH_VUMap());
            modelBuilder.Configurations.Add(new FUNCTIONMap());
            modelBuilder.Configurations.Add(new KHACH_HANGMap());
            modelBuilder.Configurations.Add(new KHAM_BENHMap());
            modelBuilder.Configurations.Add(new KHAM_BENH_DICH_VUMap());
            modelBuilder.Configurations.Add(new KHAM_BENH_DON_THUOCMap());
            modelBuilder.Configurations.Add(new KHAM_BENH_VAT_TUMap());
            modelBuilder.Configurations.Add(new PHIEU_KHAMMap());
            modelBuilder.Configurations.Add(new PHONG_KHAMMap());
            modelBuilder.Configurations.Add(new THANH_TOAN_TAM_UNGMap());
            modelBuilder.Configurations.Add(new THUOCMap());
            modelBuilder.Configurations.Add(new THUOC_DON_GIAMap());
            modelBuilder.Configurations.Add(new THUOC_TON_KHOMap());
            modelBuilder.Configurations.Add(new TINH_THANHMap());
            modelBuilder.Configurations.Add(new USERMap());
            modelBuilder.Configurations.Add(new USERS_FUNCTIONSMap());
            modelBuilder.Configurations.Add(new VAT_TUMap());
            modelBuilder.Configurations.Add(new VAT_TU_DON_GIAMap());
            modelBuilder.Configurations.Add(new VAT_TU_TON_KHOMap());
        }
    }
}
